// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//axios.defaults.baseURL = 'http://pstsc.pstech360.com/api/'
axios.defaults.baseURL = 'http://192.168.0.233'
//axios.defaults.baseURL = 'http://115.28.237.109'
// axios.defaults.baseURL = 'http://yingdun.com/'
// axios.defaults.baseURL = axios.defaults.baseUR
axios.defaults.timeout = 1000 * 15
axios.defaults.headers['Content-Type'] = 'application/json'
axios.defaults.withCredentials = true
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
Vue.config.productionTip = false
window.axios = axios
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
